#include <stdio.h>
#include <string.h>
#include <ctype.h>

const char *mirror = "A   3  HIL JM O   2TUVWXY51SE Z  8 ";
const char *msg[] = {"not a palindrome", "a regular palindrome", "a mirrored string", "a mirrored palindrome"};

char get_mirror(char c) {
  if (isalpha(c)) {
    return mirror[c - 'A'];
  } else {
    return mirror[c - '0' + 25];
  }
}

int main() {
  char s[25];
  int p, m, length, i;
  
  while (scanf("%s", s) == 1) {
    p = m = 1;
    length = strlen(s);
    
    for (i = 0; i < ((length + 1) / 2); i++) {
      if (s[i] != s[length - i - 1]) {
        p = 0;
      }
      
      if (get_mirror(s[i]) != s[length - i - 1]) {
        m = 0;
      }
    }
    
    printf("%s -- is %s.\n\n", s, msg[p + m * 2]);
  }
  
  return 0;
}
